package cn.codelab.springcloudalibaba.study.step02.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/demo")
@AllArgsConstructor
public class ProviderDemoController {

    @GetMapping("/hello")
    public String say(@RequestParam String msg){
        return "Hello " + msg;
    }
}
